package ua.epam.java_bravo.data.factory;

import ua.epam.java_bravo.data.dao.HsRenterDao;
import ua.epam.java_bravo.data.jdbc.HsRenterDaoImpl;

import java.sql.Connection;

public class HsRenterDaoFactory {
    /**
     * Method 'create'
     *
     * @return HsRenterDao
     */
    public static HsRenterDao create() {
        return new HsRenterDaoImpl();
    }

    /**
     * Method 'create'
     *
     * @param conn
     * @return HsRenterDao
     */
    public static HsRenterDao create(Connection conn) {
        return new HsRenterDaoImpl(conn);
    }

}
